#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Intesim Python Script

Model.updateSolverList()
Model.updateSolverList()
Window.initCadWindow()
gl.Parameter('GAP', 10E-3)
CAD.addParameter('GAP')
CAD.recomputeby('GAP')
gl.Parameter('XINGCHENG', 1.75)
CAD.addParameter('XINGCHENG')
CAD.recomputeby('XINGCHENG')
gl.Parameter('DONGTIEXIN', -30)
CAD.addParameter('DONGTIEXIN')
CAD.recomputeby('DONGTIEXIN')
gl.Parameter('DAOCIHUAN', %XINGCHENG%-4.53)
CAD.addParameter('DAOCIHUAN')
CAD.recomputeby('DAOCIHUAN')
gl.Parameter('JINGTIEXIN', %XINGCHENG%-5)
CAD.addParameter('JINGTIEXIN')
CAD.recomputeby('JINGTIEXIN')
gl.Parameter('SHANGGAI', %XINGCHENG%-16.77)
CAD.addParameter('SHANGGAI')
CAD.recomputeby('SHANGGAI')
gl.Parameter('XIAGAI', %XINGCHENG%+22.45)
CAD.addParameter('XIAGAI')
CAD.recomputeby('XIAGAI')
gl.Parameter('XIANQUAN', %XINGCHENG%+14.97)
CAD.addParameter('XIANQUAN')
CAD.recomputeby('XIANQUAN')
gl.Parameter('YONGCI', %XINGCHENG%-4.53)
CAD.addParameter('YONGCI')
CAD.recomputeby('YONGCI')
gl.Parameter('PM_FX_X', 27)
CAD.addParameter('PM_FX')
CAD.recomputeby('PM_FX')
gl.Parameter('PM_FX_Y', -8)
CAD.addParameter('PM_FX')
CAD.recomputeby('PM_FX')
sketch = CAD.addSketch('sketch')
sketch.setRotation(0, 0, 0, 1)
CAD.getSketch('sketch').addPoint(CAD.Point(6.79/2, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(16.11/2, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(16.11/2, 38.17-%GAP%-20.98+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(33.02/2, 38.17-%GAP%-20.98+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(33.02/2, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(41.9/2, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(41.9/2, 38.17-%GAP%-1.91+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(34.9/2, 38.17-%GAP%-1.91+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(34.9/2, 38.17-%GAP%-1.91+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(34.9/2, 38.17-%GAP%+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(16.07/2, 38.17-%GAP%+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(16.07/2, 38.17-%GAP%-6.48+%DONGTIEXIN%))
CAD.getSketch('sketch').addPoint(CAD.Point(6.79/2, 38.17-%GAP%-6.48+%DONGTIEXIN%))
Model.updateSolverList()
Model.updateSolverList()
CAD.getSketch('sketch').addLine(start = CAD.Point(3.395, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%), end = CAD.Point(8.055, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.Start, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.End, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line1')
CAD.getSketch('sketch').addLine(start = CAD.Point(8.055, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%), end = CAD.Point(8.055, 38.17-%GAP%-20.98+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.Start, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.End, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Vertical, geo_1='line2')
CAD.getSketch('sketch').addLine(start = CAD.Point(8.055, 38.17-%GAP%-20.98+%DONGTIEXIN%), end = CAD.Point(16.51, 38.17-%GAP%-20.98+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.Start, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.End, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line3')
CAD.getSketch('sketch').addLine(start = CAD.Point(16.51, 38.17-%GAP%-20.98+%DONGTIEXIN%), end = CAD.Point(16.51, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.Start, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.End, geo_2='vertex5', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Vertical, geo_1='line4')
CAD.getSketch('sketch').addLine(start = CAD.Point(16.51, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%), end = CAD.Point(20.95, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line5', pos_1=PointPos.Start, geo_2='vertex5', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line5', pos_1=PointPos.End, geo_2='vertex6', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line5')
CAD.getSketch('sketch').addLine(start = CAD.Point(20.95, 38.17-%GAP%-20.98+2.46+%DONGTIEXIN%), end = CAD.Point(20.95, 38.17-%GAP%-1.91+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line6', pos_1=PointPos.Start, geo_2='vertex6', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line6', pos_1=PointPos.End, geo_2='vertex7', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Vertical, geo_1='line6')
CAD.getSketch('sketch').addLine(start = CAD.Point(20.95, 38.17-%GAP%-1.91+%DONGTIEXIN%), end = CAD.Point(17.45, 38.17-%GAP%-1.91+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line7', pos_1=PointPos.Start, geo_2='vertex7', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line7', pos_1=PointPos.End, geo_2='vertex8', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line7')
CAD.getSketch('sketch').addLine(start = CAD.Point(17.45, 38.17-%GAP%-1.91+%DONGTIEXIN%), end = CAD.Point(17.45, 38.17-%GAP%+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line8', pos_1=PointPos.Start, geo_2='vertex8', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line8', pos_1=PointPos.End, geo_2='vertex10', pos_2=PointPos.Start)
CAD.getSketch('sketch').addLine(start = CAD.Point(17.45, 38.17-%GAP%+%DONGTIEXIN%), end = CAD.Point(8.035, 38.17-%GAP%+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line9', pos_1=PointPos.Start, geo_2='vertex10', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line9', pos_1=PointPos.End, geo_2='vertex11', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line9')
CAD.getSketch('sketch').addLine(start = CAD.Point(8.035, 38.17-%GAP%+%DONGTIEXIN%), end = CAD.Point(8.035, 38.17-%GAP%-6.48+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line10', pos_1=PointPos.Start, geo_2='vertex11', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line10', pos_1=PointPos.End, geo_2='vertex12', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Vertical, geo_1='line10')
CAD.getSketch('sketch').addLine(start = CAD.Point(8.035, 38.17-%GAP%-6.48+%DONGTIEXIN%), end = CAD.Point(3.395, 38.17-%GAP%-6.48+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line11', pos_1=PointPos.Start, geo_2='vertex12', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line11', pos_1=PointPos.End, geo_2='vertex13', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Horizontal, geo_1='line11')
CAD.getSketch('sketch').addLine(start = CAD.Point(3.395, 38.17-%GAP%-6.48+%DONGTIEXIN%), end = CAD.Point(3.395, 38.17-%GAP%-20.98-11.14+%DONGTIEXIN%), construction = False)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line12', pos_1=PointPos.Start, geo_2='vertex13', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Coincident, geo_1='line12', pos_1=PointPos.End, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch').addConstraint(type=ConstraintType.Vertical, geo_1='line12')
sketch = CAD.addSketch('sketch001')
sketch.setRotation(0, 0, 0, 1)
CAD.getSketch('sketch001').addPoint(CAD.Point(20.01/2, -8.06+%SHANGGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(20.01/2, %SHANGGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(60.03/2, %SHANGGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(60.03/2, 0-4.98+%XIAGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(41.84/2, 22.47+%JINGTIEXIN%))
CAD.getSketch('sketch001').addPoint(CAD.Point(41.84/2, 22.47-11.05+%JINGTIEXIN%))
CAD.getSketch('sketch001').addPoint(CAD.Point(16.07/2, 22.47-11.05+%JINGTIEXIN%))
CAD.getSketch('sketch001').addPoint(CAD.Point(16.07/2, 22.34-11.05+6.78+%JINGTIEXIN%))
CAD.getSketch('sketch001').addPoint(CAD.Point(7.99/2, 22.34-11.05+6.78+%JINGTIEXIN%))
CAD.getSketch('sketch001').addPoint(CAD.Point(7.99/2, 0+%XIAGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(87.97/2, 0+%XIAGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(87.97/2, 0-4.98+1.92+%XIAGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(73.94/2, 0-4.98+1.92+%XIAGAI%))
CAD.getSketch('sketch001').addPoint(CAD.Point(73.94/2, -8.06+%SHANGGAI%))
Model.updateSolverList()
Model.updateSolverList()
CAD.getSketch('sketch001').addLine(start = CAD.Point(10.005, -8.06+%SHANGGAI%), end = CAD.Point(10.005, %SHANGGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.Start, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.End, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line1')
CAD.getSketch('sketch001').addLine(start = CAD.Point(10.005, %SHANGGAI%), end = CAD.Point(30.015, %SHANGGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.Start, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.End, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line2')
CAD.getSketch('sketch001').addLine(start = CAD.Point(30.015, %SHANGGAI%), end = CAD.Point(30.015, 0-4.98+%XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.Start, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.End, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line3')
CAD.getSketch('sketch001').addLine(start = CAD.Point(30.015, 0-4.98+%XIAGAI%), end = CAD.Point(20.92, 0-4.98+%XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.Start, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.End, geo_2='vertex5', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line4')
CAD.getSketch('sketch001').addLine(start = CAD.Point(20.92, 0-4.98+%XIAGAI%), end = CAD.Point(20.92, 22.47-11.05+%JINGTIEXIN%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line5', pos_1=PointPos.Start, geo_2='vertex5', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line5', pos_1=PointPos.End, geo_2='vertex6', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line5')
CAD.getSketch('sketch001').addLine(start = CAD.Point(20.92, 22.47-11.05+%JINGTIEXIN%), end = CAD.Point(8.035, 22.47-11.05+%JINGTIEXIN%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line6', pos_1=PointPos.Start, geo_2='vertex6', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line6', pos_1=PointPos.End, geo_2='vertex7', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line6')
CAD.getSketch('sketch001').addLine(start = CAD.Point(8.035, 22.47-11.05+%JINGTIEXIN%), end = CAD.Point(8.035, 22.34-11.05+6.78+%JINGTIEXIN%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line7', pos_1=PointPos.Start, geo_2='vertex7', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line7', pos_1=PointPos.End, geo_2='vertex8', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line7')
CAD.getSketch('sketch001').addLine(start = CAD.Point(8.035, 22.34-11.05+6.78+%JINGTIEXIN%), end = CAD.Point(3.995, 22.34-11.05+6.78+%JINGTIEXIN%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line8', pos_1=PointPos.Start, geo_2='vertex8', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line8', pos_1=PointPos.End, geo_2='vertex9', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line8')
CAD.getSketch('sketch001').addLine(start = CAD.Point(3.995, 22.34-11.05+6.78+%JINGTIEXIN%), end = CAD.Point(3.995, %XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line9', pos_1=PointPos.Start, geo_2='vertex9', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line9', pos_1=PointPos.End, geo_2='vertex10', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line9')
CAD.getSketch('sketch001').addLine(start = CAD.Point(3.995, %XIAGAI%), end = CAD.Point(43.985, %XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line10', pos_1=PointPos.Start, geo_2='vertex10', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line10', pos_1=PointPos.End, geo_2='vertex11', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line10')
CAD.getSketch('sketch001').addLine(start = CAD.Point(43.985, %XIAGAI%), end = CAD.Point(43.985, 0-4.98+1.92+%XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line11', pos_1=PointPos.Start, geo_2='vertex11', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line11', pos_1=PointPos.End, geo_2='vertex12', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addLine(start = CAD.Point(43.985, 0-4.98+1.92+%XIAGAI%), end = CAD.Point(36.97, 0-4.98+1.92+%XIAGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line12', pos_1=PointPos.Start, geo_2='vertex12', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line12', pos_1=PointPos.End, geo_2='vertex13', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line12')
CAD.getSketch('sketch001').addLine(start = CAD.Point(36.97, 0-4.98+1.92+%XIAGAI%), end = CAD.Point(36.97, -8.06+%SHANGGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line13', pos_1=PointPos.Start, geo_2='vertex13', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line13', pos_1=PointPos.End, geo_2='vertex14', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Vertical, geo_1='line13')
CAD.getSketch('sketch001').addLine(start = CAD.Point(36.97, -8.06+%SHANGGAI%), end = CAD.Point(10.005, -8.06+%SHANGGAI%), construction = False)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line14', pos_1=PointPos.Start, geo_2='vertex14', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Coincident, geo_1='line14', pos_1=PointPos.End, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch001').addConstraint(type=ConstraintType.Horizontal, geo_1='line14')
CAD.recompute()
sketch = CAD.addSketch('sketch002')
sketch.setRotation(0, 0, 0, 1)
CAD.getSketch('sketch002').addPoint(CAD.Point(41.9/2+2.5, 0-17+%XIANQUAN%))
CAD.getSketch('sketch002').addPoint(CAD.Point(41.9/2+2.5, %XIANQUAN%))
CAD.getSketch('sketch002').addPoint(CAD.Point(41.9/2+2.5+3, %XIANQUAN%))
CAD.getSketch('sketch002').addPoint(CAD.Point(41.9/2+2.5+3, 0-17+%XIANQUAN%))
Model.updateSolverList()
Model.updateSolverList()
CAD.getSketch('sketch002').addLine(start = CAD.Point(23.45, 0-17+%XIANQUAN%), end = CAD.Point(23.45, %XIANQUAN%), construction = False)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.Start, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.End, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Vertical, geo_1='line1')
CAD.getSketch('sketch002').addLine(start = CAD.Point(23.45, %XIANQUAN%), end = CAD.Point(26.45, %XIANQUAN%), construction = False)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.Start, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.End, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Horizontal, geo_1='line2')
CAD.getSketch('sketch002').addLine(start = CAD.Point(26.45, %XIANQUAN%), end = CAD.Point(26.45, 0-17+%XIANQUAN%), construction = False)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.Start, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.End, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Vertical, geo_1='line3')
CAD.getSketch('sketch002').addLine(start = CAD.Point(26.45, 0-17+%XIANQUAN%), end = CAD.Point(23.45, 0-17+%XIANQUAN%), construction = False)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.Start, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.End, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch002').addConstraint(type=ConstraintType.Horizontal, geo_1='line4')
CAD.recompute()
sketch = CAD.addSketch('sketch003')
sketch.setRotation(0, 0, 0, 1)
CAD.getSketch('sketch003').addPoint(CAD.Point(45.86/2, 0-9.93+%DAOCIHUAN%))
CAD.getSketch('sketch003').addPoint(CAD.Point(45.86/2, 0+%DAOCIHUAN%))
CAD.getSketch('sketch003').addPoint(CAD.Point(24+6.015, 0+%YONGCI%))
CAD.getSketch('sketch003').addPoint(CAD.Point(24+6.015, 0-9.93+%YONGCI%))
Model.updateSolverList()
Model.updateSolverList()
CAD.getSketch('sketch003').addLine(start = CAD.Point(22.93, 0-9.93+%DAOCIHUAN%), end = CAD.Point(22.93, 0+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.Start, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.End, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Vertical, geo_1='line1')
CAD.getSketch('sketch003').addLine(start = CAD.Point(22.93, 0+%DAOCIHUAN%), end = CAD.Point(30.015, 0+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.Start, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.End, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Horizontal, geo_1='line2')
CAD.getSketch('sketch003').addLine(start = CAD.Point(30.015, 0+%DAOCIHUAN%), end = CAD.Point(30.015, 0-9.93+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.Start, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.End, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Vertical, geo_1='line3')
CAD.getSketch('sketch003').addLine(start = CAD.Point(30.015, 0-9.93+%DAOCIHUAN%), end = CAD.Point(22.93, 0-9.93+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.Start, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.End, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch003').addConstraint(type=ConstraintType.Horizontal, geo_1='line4')
CAD.recompute()
sketch = CAD.addSketch('sketch004')
sketch.setRotation(0, 0, 0, 1)
CAD.getSketch('sketch004').addPoint(CAD.Point((41.92)/2, 0-9.93+%DAOCIHUAN%))
CAD.getSketch('sketch004').addPoint(CAD.Point((41.92)/2, %DAOCIHUAN%))
CAD.getSketch('sketch004').addPoint(CAD.Point(45.86/2, %DAOCIHUAN%))
CAD.getSketch('sketch004').addPoint(CAD.Point(45.86/2, 0-9.93+%DAOCIHUAN%))
Model.updateSolverList()
Model.updateSolverList()
CAD.getSketch('sketch004').addLine(start = CAD.Point(20.96, 0-9.93+%DAOCIHUAN%), end = CAD.Point(20.96, %DAOCIHUAN%), construction = False)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.Start, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line1', pos_1=PointPos.End, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Vertical, geo_1='line1')
CAD.getSketch('sketch004').addLine(start = CAD.Point(20.96, %DAOCIHUAN%), end = CAD.Point(22.93, %DAOCIHUAN%), construction = False)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.Start, geo_2='vertex2', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line2', pos_1=PointPos.End, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Horizontal, geo_1='line2')
CAD.getSketch('sketch004').addLine(start = CAD.Point(22.93, %DAOCIHUAN%), end = CAD.Point(22.93, 0-9.93+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.Start, geo_2='vertex3', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line3', pos_1=PointPos.End, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Vertical, geo_1='line3')
CAD.getSketch('sketch004').addLine(start = CAD.Point(22.93, 0-9.93+%DAOCIHUAN%), end = CAD.Point(20.96, 0-9.93+%DAOCIHUAN%), construction = False)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.Start, geo_2='vertex4', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Coincident, geo_1='line4', pos_1=PointPos.End, geo_2='vertex1', pos_2=PointPos.Start)
CAD.getSketch('sketch004').addConstraint(type=ConstraintType.Horizontal, geo_1='line4')
CAD.recompute()
Model.updateSolverList()
Model.updateSolverList()
revolve = CAD.addRevolveAdvanced('revolve')
revolve.section = 'sketch'
revolve.dirtype = 'Input'
revolve.dir = CAD.Vector(0, 1, 0)
revolve.reversed = False
revolve.pointtype = 'Input'
revolve.point = CAD.Vector(0, 0, 0)
revolve.starttype = 'StartValue'
revolve.startdistance = 0
revolve.endtype ='EndValue'
revolve.enddistance = 360
revolve.solid = True
revolve.boolean = 'None'
revolve.generate()
CAD.getObject('sketch').setHide(True)
revolve = CAD.addRevolveAdvanced('revolve001')
revolve.section = 'sketch001'
revolve.dirtype = 'Input'
revolve.dir = CAD.Vector(0, 1, 0)
revolve.reversed = False
revolve.pointtype = 'Input'
revolve.point = CAD.Vector(0, 0, 0)
revolve.starttype = 'StartValue'
revolve.startdistance = 0
revolve.endtype ='EndValue'
revolve.enddistance = 360
revolve.solid = True
revolve.boolean = 'None'
revolve.generate()
CAD.getObject('sketch001').setHide(True)
revolve = CAD.addRevolveAdvanced('revolve002')
revolve.section = 'sketch002'
revolve.dirtype = 'Input'
revolve.dir = CAD.Vector(0, 1, 0)
revolve.reversed = False
revolve.pointtype = 'Input'
revolve.point = CAD.Vector(0, 0, 0)
revolve.starttype = 'StartValue'
revolve.startdistance = 0
revolve.endtype ='EndValue'
revolve.enddistance = 360
revolve.solid = True
revolve.boolean = 'None'
revolve.generate()
CAD.getObject('sketch002').setHide(True)
revolve = CAD.addRevolveAdvanced('revolve003')
revolve.section = 'sketch003'
revolve.dirtype = 'Input'
revolve.dir = CAD.Vector(0, 1, 0)
revolve.reversed = False
revolve.pointtype = 'Input'
revolve.point = CAD.Vector(0, 0, 0)
revolve.starttype = 'StartValue'
revolve.startdistance = 0
revolve.endtype ='EndValue'
revolve.enddistance = 360
revolve.solid = True
revolve.boolean = 'None'
revolve.generate()
CAD.getObject('sketch003').setHide(True)
revolve = CAD.addRevolveAdvanced('revolve004')
revolve.section = 'sketch004'
revolve.dirtype = 'Input'
revolve.dir = CAD.Vector(0, 1, 0)
revolve.reversed = False
revolve.pointtype = 'Input'
revolve.point = CAD.Vector(0, 0, 0)
revolve.starttype = 'StartValue'
revolve.startdistance = 0
revolve.endtype ='EndValue'
revolve.enddistance = 360
revolve.solid = True
revolve.boolean = 'None'
revolve.generate()
CAD.getObject('sketch004').setHide(True)
